import request from '@/utils/request'

// 查询教师信息列表

export function teacherList(query) {
  return request({
    url: '/basic/teacher/list',
    method: 'get',
    params: query
  })
}
// 获取教师信息详细信息
export function teacherInfor(query) {
  return request({
    url: '/basic/teacher/' + query,
    method: 'get',
  })
}
// 新增教师信息
export function addTeacher(data) {
  return request({
    url: '/basic/teacher',
    method: 'post',
    data: data
  })
}
// 修改教师信息
export function updateTeacher(data) {
  return request({
    url: '/basic/teacher',
    method: 'put',
    data: data
  })
}
export function delTeacher(data) {
  return request({
    url: '/basic/teacher/' + data,
    method: 'delete',
  })
}